<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .sjx{
            width:0px;
            height: 0px;
            border-bottom:20px solid #ff0000;
            border-left:20px solid transparent;
            border-right:20px solid transparent;
        }
    </style>
</head>
<body>
   <h3>用纯css实现三角形</h3> 
   <div class="sjx"></div>
</body>
</html>